﻿@using KPIS.GERP.Models;
@model KPIS.GERP.Models.ICM.Warehouse

@{
    ViewBag.Title = "ข้อมูลพื้นฐาน";
    ViewBag.Descr = "คลังพัสดุ";
}

@using (Html.BeginForm("Create", "Warehouse", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()

    <div class="block-button-menu-above">
        @Html.ButtonViewAll()
        @Html.ButtonSubmit()
    </div>

    @Html.ValidationSummary(true, KPIS.GERP.Models.Class.ValidateText.RequiredField, new { @class = "alert alert-error" })
    @Html.Partial("_EditorForm")

}

@section scripts
{
    <script>

        $("form").submit(function (e) {
            e.preventDefault();
            var currentForm = this;
            bootbox.confirm('บันทึกข้อมูลใช่หรือไม่',function (result) {
                if (result) {
                    currentForm.submit();
                }
            });
        });
    </script>
}

         
             


